package com.ruoyi.project.query.paeaDsLink.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.query.paeaDsLink.mapper.PaeaDsLinkMapper;
import com.ruoyi.project.query.paeaDsLink.domain.PaeaDsLink;
import com.ruoyi.project.query.paeaDsLink.service.IPaeaDsLinkService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 卡账关系Service业务层处理
 *
 * @author gang.wei
 * @date 2020-04-06
 */
@Service
public class PaeaDsLinkServiceImpl extends ServiceImpl<PaeaDsLinkMapper, PaeaDsLink> implements IPaeaDsLinkService
{
    @Autowired
    private PaeaDsLinkMapper paeaDsLinkMapper;

    /**
     * 查询卡账关系
     *
     * @param id 卡账关系ID
     * @return 卡账关系
     */
    @Override
    public PaeaDsLink selectPaeaDsLinkById(String id)
    {
        return paeaDsLinkMapper.selectPaeaDsLinkById(id);
    }

    /**
     * 查询卡账关系列表
     *
     * @param paeaDsLink 卡账关系
     * @return 卡账关系
     */
    @Override
    public List<PaeaDsLink> selectPaeaDsLinkList(PaeaDsLink paeaDsLink)
    {
        return paeaDsLinkMapper.selectPaeaDsLinkList(paeaDsLink);
    }

    /**
     * 新增卡账关系
     *
     * @param paeaDsLink 卡账关系
     * @return 结果
     */
    @Override
    public int insertPaeaDsLink(PaeaDsLink paeaDsLink)
    {
        return paeaDsLinkMapper.insertPaeaDsLink(paeaDsLink);
    }

    /**
     * 修改卡账关系
     *
     * @param paeaDsLink 卡账关系
     * @return 结果
     */
    @Override
    public int updatePaeaDsLink(PaeaDsLink paeaDsLink)
    {
        return paeaDsLinkMapper.updatePaeaDsLink(paeaDsLink);
    }

    /**
     * 删除卡账关系对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePaeaDsLinkByIds(String ids)
    {
        return paeaDsLinkMapper.deletePaeaDsLinkByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除卡账关系信息
     *
     * @param id 卡账关系ID
     * @return 结果
     */
    @Override
    public int deletePaeaDsLinkById(String id)
    {
        return paeaDsLinkMapper.deletePaeaDsLinkById(id);
    }
}
